package com.cater.sys.dao;



import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.cater.query.CommonQuery;
import com.cater.query.DepQuery;
import com.cater.sys.entity.Dep;

@Repository
public interface DepDao extends BaseDao<Dep, Integer,DepQuery> {

	int findCount(@Param("qo") DepQuery depQuery);

	List<Dep> findList(@Param("qo") DepQuery depQuery, @Param("first") int first,
			@Param("max") int max);
	
	void deletestate(Integer depId);
	
	Dep getpidByuser(Integer userId);
	
	List<Dep> getdepBypid(@Param("pid") Integer pid,@Param("qo") CommonQuery query);
	
	List<Dep> getAllbypid(Integer depid);

}
